<!DOCTYPE html>
 <html>
 <head>
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 <% include("/view/console/common/css.html"){}	%>

 <title></title>
 </head>
 <body>
 <blockquote class="layui-elem-quote zq-table-head">
  ${sys_user.userAccount}：基地列表
 </blockquote>
 <div class="zq-form">
 <form name="wnFarm_form"  id="wnFarm_form" class="form-horizontal" style="margin-bottom: 70px;">
  ${jds!}
  <input type="hidden" id="user_id" value="${sys_user.suId}">
 </form>
  <nav class="navbar navbar-default navbar-fixed-bottom" style="text-align: right">
    <a href="#" class="btn btn-success" style="margin:10px"  onclick='save()'>保存 </a>
  </nav>
 </div>
 <% include("/view/console/common/js.html"){} 	%>
 <script type="text/javascript">
     layui.use(['layer','laydate'], function(){

     });
     function save(){
         var jds=[];
         $("input[name='jd_name']:checked").each(function(i,t){
             jds.push($(t).val());
         })
         zqPost("${ctxPath}/console/sys_user/auth/farm",{user_id:$("#user_id").val(),ids:jds.join(",")},function(data){
             layui.layer.alert(data.message);
         });
     }
 </script>
 </body>
